package com.barrygee.android.threesixtyapp.view.controllers;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import com.barrygee.android.threesixtyapp.R;

public class AppSideDownLogoViewController extends Activity
{

	@Override
    public void onCreate(Bundle savedInstanceState) 
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.appsidedown_logo);

        init();
    }
	
	
	
	// set up Thread Timer to count down and call the next Activity
	public void init()
	{
		Thread timer = new Thread()
		{
			// Thread expects a Run() method
			public void run()
			{
				try
				{
					// pause the thread for 5000 milliseconds (5 seconds) 
					sleep(5000);
				} 
				catch (InterruptedException e)
				{
					// trace out errors
					e.printStackTrace();
				} 
				finally
				{
					// create Intent to call the next Activity
					Intent startCaptureDataActivity = new Intent("com.barrygee.android.START_CAPTURE_DATA_ACTIVITY");
					
					// start the activity - pass it the intent 
					startActivity(startCaptureDataActivity);
				}
			}
		};
		
		// start the Thread timer
		timer.start();
	}
	
}